package com.hgd.security.evp.swagger.aop;

import springfox.documentation.swagger2.web.Swagger2Controller;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**************************************
 * Copyright (C), Navinfo
 * Package: 
 * @author: 尚村山夫
 * @date: Created in 2019/9/7 11:39
 * @description:
 **************************************/
public class SwaggerControllerProxy implements InvocationHandler {
    private Swagger2Controller swagger2Controller;

    public SwaggerControllerProxy(Swagger2Controller swagger2Controller) {
        this.swagger2Controller = swagger2Controller;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        method.invoke(swagger2Controller, args);
        return null;
    }
}
